#ifndef CRC_16_H
#define CRC_16_H

/**
 * @copyright Copyright (c) 2025 
 * CSG Digital Grid Technology (Guangdong) Co., Ltd.
 * @author zhouyan
 * @brief  CRC16计算
*/
#include <stdint.h>
#include <stddef.h>

uint16_t calcCRC16(const void *buf, size_t size);

uint16_t crc16_ccitt(uint16_t seed, const uint8_t *src, size_t len);
#endif
